import java.io.Serializable;
import java.util.HashMap;

public class Raid implements Serializable {

	private static final long serialVersionUID = 1L;

	/* ATTRIBUTS */
	private String nom;
	private HashMap<String, Boss> Bosses;

	/* CONSTRUCTEUR */
	public Raid(String nom) {
		setNom(nom);
	}

	/* NOM */
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	/* BOSSES */
	public HashMap<String, Boss> getBosses() {
		return Bosses;
	}

	public void setBosses(HashMap<String, Boss> Bosses) {
		this.Bosses = Bosses;
	}

	public void supprimerBosses() {
		getBosses().clear();
	}

	/* BOSS */
	public void addBoss(String npm, Boss boss) {
		getBosses().put(nom, boss);
	}

	public void delBoss(Boss boss) {
		getBosses().remove(boss);
	}

	public Boss getBoss(String nom) {
		return getBosses().get(nom);
	}

}
